package com.by.service;

import com.by.bean.GoodsCategory;
import com.by.common.core.crud.IService;

import java.util.List;

public interface GoodsCategoryService extends IService<GoodsCategory>{
    /**
     * 新增分类
     *
     * @param goodsCategory
     * @return
     */
    int saveCategory(GoodsCategory goodsCategory);

    /**
     * 类别树
     *
     * @return
     */
    List<GoodsCategory> categorytree();
}
